package org.ycframework.context;

import org.springframework.context.annotation.Bean;

/**
 * @ClassName YcBeanDefinition
 * @since: 2023/7/27 17:28
 * @auth: kirito
 * @description:
 * 对一个bean的特征的包装的类
 * 特征：scope（singleton、prototype...
 *      lazy（true、false  懒加载
 *      primary 主实例|优先实例
 *      userDao接口  @Primary UserDaoMybatisImpl类
 *      业务层 @Autowired + @Primary
 * */
public class YcBeanDefinition {
    private boolean isLazy;
    private String scope = "singleton";
    private boolean isPrimary;

    private String classInfo;  //类的实例信息

    public boolean isLazy() {
        return isLazy;
    }

    public void setLazy(boolean lazy) {
        isLazy = lazy;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public boolean isPrimary() {
        return isPrimary;
    }

    public void setPrimary(boolean primary) {
        isPrimary = primary;
    }

    public String getClassInfo() {
        return classInfo;
    }

    public void setClassInfo(String classInfo) {
        this.classInfo = classInfo;
    }
}
